import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '设备名称',
    align: "center",
    dataIndex: 'devName'
  },
  {
    title: '自编号',
    align: "center",
    dataIndex: 'devNumber'
  },
  {
    title: '规格型号',
    align: "center",
    dataIndex: 'devModel'
  },
  {
    title: '设备状态',
    align: "center",
    dataIndex: 'status'
  },
  {
    title: '本年使用天数(天)',
    align: "center",
    dataIndex: 'useDate'
  },
  {
    title: '本年使用率(%)',
    align: "center",
    dataIndex: 'useRate'
  },
  {
    title: '总使用天数(天)',
    align: "center",
    dataIndex: 'sumUseDate'
  },
  {
    title: '总使用率(%)',
    align: "center",
    dataIndex: 'sumUseRate'
  },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
  {
    label: "年度",
    field: 'year',
    component: 'Select',
    colProps: { span: 6 },
  },
  {
    label: "设备编号",
    field: 'devNumber',
    component: 'Input',
    colProps: { span: 6 },
  },
  {
    label: "设备名称",
    field: 'devName',
    component: 'Input',
    colProps: { span: 6 },
  },  
  {
    label: "设备状态",
    field: "status",
    component: 'Select',
    colProps: {span: 6},
  },
];
//列表数据
export const operationRecordsColumns: BasicColumn[] = [
  {
    title: '实验类型',
    align: "center",
    dataIndex: 'syType'
  },
  {
    title: '设备名称',
    align: "center",
    dataIndex: 'devName'
  },
  {
    title: '自编号',
    align: "center",
    dataIndex: 'devNum'
  },
  {
    title: '有效期',
    align: "center",
    dataIndex: 'devValidity'
  },
  {
    title: '开始时间',
    align: "center",
    dataIndex: 'startTime'
  },
  {
    title: '结束时间',
    align: "center",
    dataIndex: 'endTime'
  },
  {
    title: '运行时间/(分钟)',
    align: "center",
    dataIndex: 'runTime'
  },
  {
    title: '样品名称',
    align: "center",
    dataIndex: 'samName'
  },
  {
    title: '项目名称',
    align: "center",
    dataIndex: 'itemName'
  },
  {
    title: '实验人员',
    align: "center",
    dataIndex: 'userName'
  },
];